package pe.edu.upc.dsd.clienteweb.controller;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
public class ClienteWebController {
	private Logger logger = Logger.getLogger(ClienteWebController.class);
	
	@RequestMapping(value="/", method = RequestMethod.GET)
	public String index(Model model){
		logger.debug("Ingresando al index...");
		return "index";
	}
	
	@RequestMapping(value="/home", method = RequestMethod.GET)
	public String home(Model model){
		logger.debug("Ingresando al index mediante menu...");
		return "index";
	}
}
